package C6_4_FactoryMethod.after;

import C6_4_FactoryMethod.before.OutputBuilder;
import C6_4_FactoryMethod.before.XMLBuilder;

/**
 * Desc:&emsp;&ensp;
 *
 * @author 李渊&emsp;liyuan7@yusys.com.cn
 * @version 1.0
 * @date 2022/8/29
 * @since V1.0
 */
abstract class AbstractTest {
    private OutputBuilder builder;

    public void addAboveRoot(){
        // ...
        builder = createBuilder();
        // ...
    }

    protected abstract OutputBuilder createBuilder();
}
